public class AccountRecord {
    private int money;
    private int win;
    private int games;

    public AccountRecord(int money, int win, int games) {
        this.money = money;
        this.win = win;
        this.games = games;
    }

    public int getMoney() {
        return money;
    }

    public int getWin() {
        return win;
    }

    public int getGames() {
        return games;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public void setWin(int win) {
        this.win = win;
    }

    public void setGames(int games) {
        this.games = games;
    }

    public void changeMoney(int delta) {
        this.money += delta;
    }

    public void win() {
        this.win++;
        this.games++;
    }

    public void lose() {
        this.games++;
    }

    @Override
    public String toString() {
        return "[money=" + money + ", win=" + win + ", games=" + games + "]";
    }
}
